How to fix error "ld:-lMvCameraControl not compatable symbol" when compiling?

How to fix error "ld:-lMvCameraControl not compatable symbol" when compiling?

Cause

SDK version and hardware environment mismatched, or compiler toolchain does not support.

Solution

  1. Check if the SDK version and hardware environment are matched:

    uname -a

    cd /opt/MVS/lib/64

    readelf -h libMvCameraControl.so

  2. Check if the gcc version and corresponding SDK version are matched, the gcc version of different SDK is shown below:

    x86_64: gcc-4.4.7

    i386: gcc-4.4.7

    armhf: gcc-4.8.2

    aarch64: gcc-4.9.4

    If used gcc version is lower than the SDK required version, you can use gcc with higher version. For details, please contact our technical supporter.

How to fix error "ld:-lMvCameraControl not compatable symbol" when compiling?

Cause

SDK version and hardware environment mismatched, or compiler toolchain does not support.

Solution

  1. Check if the SDK version and hardware environment are matched:

    uname -a

    cd /opt/MVS/lib/64

    readelf -h libMvCameraControl.so

  2. Check if the gcc version and corresponding SDK version are matched, the gcc version of different SDK is shown below:

    x86_64: gcc-4.4.7

    i386: gcc-4.4.7

    armhf: gcc-4.8.2

    aarch64: gcc-4.9.4

    If used gcc version is lower than the SDK required version, you can use gcc with higher version. For details, please contact our technical supporter.